package com.ruoyi.check.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 加班管理对象 overtime
 *
 * @author tza
 * @date 2023-03-07
 */
public class Overtime extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录号 */
    @Excel(name = "记录号")
    private Integer otId;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private Integer empId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String empName;

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    /** 加班类型 */
    @Excel(name = "加班类型")
    private String otStyel;

    /** 起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "起始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date otStartTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date otEndTime;

    /** 加班时长 */
    private String differTime;

    public String getDifferTime() {
        return differTime;
    }

    public void setDifferTime(String differTime) {
        this.differTime = differTime;
    }

    /** 版本号 */
    private Integer version;

    public void setOtId(Integer otId)
    {
        this.otId = otId;
    }

    public Integer getOtId()
    {
        return otId;
    }
    public void setEmpId(Integer empId)
    {
        this.empId = empId;
    }

    public Integer getEmpId()
    {
        return empId;
    }
    public void setOtStyel(String otStyel)
    {
        this.otStyel = otStyel;
    }

    public String getOtStyel()
    {
        return otStyel;
    }
    public void setOtStartTime(Date otStartTime)
    {
        this.otStartTime = otStartTime;
    }

    public Date getOtStartTime()
    {
        return otStartTime;
    }
    public void setOtEndTime(Date otEndTime)
    {
        this.otEndTime = otEndTime;
    }

    public Date getOtEndTime()
    {
        return otEndTime;
    }
    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("otId", getOtId())
            .append("empId", getEmpId())
            .append("otStyel", getOtStyel())
            .append("otStartTime", getOtStartTime())
            .append("otEndTime", getOtEndTime())
            .append("version", getVersion())
            .toString();
    }
}
